package com.fxp.project.jiuselu.web.models.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fxp.project.jiuselu.web.models.user.entity.JslUserOauth;
import com.fxp.project.jiuselu.web.models.user.request.Accesstoken;
import com.fxp.project.jiuselu.web.models.user.request.WxuserInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 三方平台认证信息 服务类
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-12-26
 */
public interface IJslUserOauthService extends IService<JslUserOauth> {
    /**
     * 微信登录二维码
     * @return
     */
    public String getQRcode();

    public WxuserInfo wxLogin(HttpServletRequest request, HttpServletResponse response, String code,Integer type,Integer state);

    public WxuserInfo getuserInfo(String accessToken,String openId,Integer oauth,Integer state);

    /**
     * 绑定微信
     */
    public int bundlingWx(String openId,Long userId);

    /**
     * 解除微信绑定
     */
    public int endBind(Long userId);
}
